package com.itcast.polymorphic.Demo02;

/*
水果父类
*/
public abstract class Fruit {
    public abstract void getJuice();
    public void zha(Fruit fruit) {
        //调用子类方法
        fruit.getJuice();
        System.out.println("把汁装到杯子里面！");
    }
}
